void runScript(Player & p, ScriptEngine & turingmachine)
{
	char i = turingmachine.nextCode();

	// the script engine logic.
	scriptLookupTable[i].FUNCTION(p, turingmachine);

	if(turingmachine.index >= turingmachine.instructions->getSize())
	{
		turingmachine.index = 0;
	}
}
